Skip to content

Fix resume book, analytics, and volunteer-admin bugs - #377

Merged
aamoghS merged 1 commit into
mainfrom
hotfix-fix-main-review-issues-9d3d
Sep 6, 2026
Merged

Fix resume book, analytics, and volunteer-admin bugs#377
aamoghS merged 1 commit into
mainfrom
hotfix-fix-main-review-issues-9d3d

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Automated PR tracking changes from hotfix-fix-main-review-issues-9d3d into dev.


Note

Medium Risk
Changes who receives admin permissions and how membership analytics are computed; resume paths touch upload validation and staff-facing download security.

Overview
Tightens resume book and upload behavior: resume list search strips SQL LIKE wildcards and caps explicit ID lists; the ZIP builder waits on named archive entries so index.csv cannot unblock PDF appends early; uploads require a valid Content-Length, and filenames use safer decode/display helpers plus RFC 5987 Content-Disposition for Unicode PDFs.

Admin portal changes: isAdmin (and permissions) now require a staff role via isStaffRole, so volunteer check-in accounts no longer read as full admins. Insights growth sorts bootcamp terms chronologically with compareTerms and counts active members only when membershipEndDate is still in the future (not just isActive).

Reviewed by Cursor Bugbot for commit e3b1640. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions
github-actions Bot requested a review from aamoghS as a code owner September 6, 2026 22:00
@cursor cursor Bot changed the title Feature: hotfix-fix-main-review-issues-9d3d to dev Fix resume book, analytics, and volunteer-admin bugs Sep 6, 2026
@cursor
cursor Bot changed the base branch from dev to main September 6, 2026 22:01
Stop decodeURIComponent from crashing Settings on a truncated filename, wait for the matching ZIP entry instead of the previous one, and keep volunteer accounts from counting as staff. Analytics now uses unexpired memberships and chronological bootcamp terms.
@cursor
cursor Bot force-pushed the hotfix-fix-main-review-issues-9d3d branch from e3ed7d8 to e3b1640 Compare September 6, 2026 22:13
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor Author

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor Author

Visit the preview URL for this PR (updated for commit e3b1640):

https://hacklytics2027--pr-377-5r5gny9r.web.app

(expires Sun, 13 Sep 2026 22:14:47 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: c48ba34db61581e25fe2978355160b5eefe0e83f

@aamoghS
aamoghS merged commit a2753ea into main Sep 6, 2026
22 checks passed

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit e3b1640. Configure here.

export function searchNeedle(search: string | undefined) {
const needle = search?.replace(/[%_\\]/g, "").replace(/\s+/g, " ").trim();
return needle || undefined;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Search strips underscore from queries

Medium Severity

searchNeedle deletes _ from the query instead of treating it as a literal. Resume search matches name, email, and major, and emails often contain _. A query like john_doe becomes johndoe and no longer matches the stored address, so staff cannot find those people in the book.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit e3b1640. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant